package com.rp.infopub.po;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.raptor.entity.BaseModel3;

import com.rp.system.po.Resource;

/**
 * 栏目
 * @author HuangJian
 *
 */
@Entity
@Table(name="RP_INFOPUB_CHANNELS")
public class Channel extends BaseModel3 {

	private static final long serialVersionUID = 4689331557386429618L;
	
	private String name;		//栏目名称
	private String pid;			//父ID
	private String enabled2;	//是否激活
	private String remark;		//备注
	
	private String creatorId;
	private String creatorName;
	private String ip;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPid() {
		return pid;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
	public String getEnabled2() {
		return enabled2;
	}
	public void setEnabled2(String enabled2) {
		this.enabled2 = enabled2;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getCreatorId() {
		return creatorId;
	}
	public void setCreatorId(String creatorId) {
		this.creatorId = creatorId;
	}
	public String getCreatorName() {
		return creatorName;
	}
	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	
	/**
	 * 重写equals方法
	 */
	@Override
	public boolean equals(Object obj) {
		if (obj instanceof Channel) {
			Channel channel = (Channel) obj;
			if (channel.getId().equals(this.getId())) {
				return true;
			}
		}
		return false;
	}
	
}
